package com.fingard.dsp.bank.reqrespobj.decontract.detail;

import com.fingard.dsp.bank.reqrespobj.single.detail.ReqPayRecDetail;
import com.fingard.text.StringHelper;
import com.fingard.xml.XElement;

public class ReqDeContractDetail extends ReqPayRecDetail {
	/** 步骤(01-解约申请, 02-解约确认) */
	public String step;
	/** 解约流水号 */
    public String askNumber;
    
	/** 解约发起方账号 */
	public String recAct;
	
	/** 解约账号 */
	public String payAct;

	/** 解约户名 */
	public String payName;

	/** 证件类型 */
	public String certType;

	/** 证件号码 */
	public String certNum;

	/** 短信签约码 */
	public String token;
	/** 单笔限额 */
	public String singleLimit;

	/** 委托代扣周期 */
	public String periodLimit;

	/** 保单号 */
	public String sourceNoteCode;


	/** 协议号 */
	public String authCode;

    /** 手机号 */
    public String cellPhone;

	/** 付方区域 */
	public String payArea;
	/** 验证码 */
	public String smsCode;
	/** 验证码 */
	public String insureID;

	
	public ReqDeContractDetail(XElement p_xelement) throws Exception{
		step = p_xelement.getSingleTextNotNull("Step");
		askNumber = p_xelement.getSingleTextNotNull("ReqSeqID");
		recAct = p_xelement.getSingleTextNotNull("RecAct");
		payAct = p_xelement.getSingleTextNotNull("PayAct");
		payName=p_xelement.getSingleTextNotNull("PayName");
		certType=p_xelement.getSingleTextNotNull("CertType");
		certNum=p_xelement.getSingleTextNotNull("CertNum");
		singleLimit = p_xelement.getSingleTextNotNull("SingleLimit");
		periodLimit = p_xelement.getSingleTextNotNull("PeriodLimit");
		token = p_xelement.getSingleTextNotNull("Token");
		smsCode = p_xelement.getSingleTextNotNull("SmsCode");
		insureID = p_xelement.getSingleTextNotNull("InsureID");
		insuPolicyNum = p_xelement.getSingleTextNotNull("InsuPolicyNum");
		if (StringHelper.isNullOrEmpty(insuPolicyNum)) {
			insuPolicyNum = p_xelement.getSingleTextNotNull("PolicyNo");
		}
		sourceNoteCode = p_xelement.getSingleTextNotNull("SourceNoteCode");
		authCode = p_xelement.getSingleTextNotNull("AuthCode");
        cellPhone = p_xelement.getSingleTextNotNull("CellPhone");
		payArea = p_xelement.getSingleTextNotNull("PayArea");
	}
}